﻿@{
    
    Layout = "~/Areas/Shared/_spListV1.cshtml";
    ViewBag.ListActionURL = Url.Action("ProductPhotoList", "ProductManage", new { area = "Cubic", ProductId = Request["ProductId"] });
    ViewBag.AddActionURL = Url.Action("AddProductPhoto", "ProductManage", new { area = "Cubic",ProductId=Request["ProductId"] });
    ViewBag.DelActionURL = Url.Action("DelProductPhoto", "ProductManage", new { area = "Cubic" });
    ViewBag.EditActionURL = Url.Action("EditProductPhoto", "ProductManage", new { area = "Cubic" });
    ViewBag.IdColumn = "Id";
    ViewBag.NameColumn = "Name";
    ViewBag.ListSortName = "";
    ViewBag.ListSortOrder = "";
    ViewBag.AddWindowTitle = "添加图片";
    ViewBag.EditWindowTitle = "编辑图片";   
}
@model Kaiser.Modules.Cubic.DomainModel.Product.ProductDetail
@section Script
{
    <script type="text/javascript">

        config.GridOption.toolbar = "#tb";
        config.pagination = false;
        config.GridOption.columns = [[
            { field: 'Name', title: '标题', width: 50 },
            { field: 'Sequence', title: '排序号', width: 50 },
  { field: 'Type', title: '图片类型', width: 50 },
            {
                field: '操作',
                title: '操作',
                width: 60,
                formatter: function (value, row, rowIndex) {
                    var arr = new Array();

                    arr.push('<a href=# class="OpertaionButton"  onclick=EditItem("' + rowIndex + '")>[修改]</a>');
                    arr.push('<a href=# class="OpertaionButton"  onclick=del("' + row.Id + '")>[删除]</a>');
                    return arr.join('');
                }
            }
        ]];

    </script>
}
<div id="tb">
    <div>
        <div style="float: left">
            <a href="#" class="easyui-linkbutton" style="margin-top: 4px" iconcls="icon-add" plain="true">新增</a>
            @*<a href="#" onclick="closePage" class="easyui-linkbutton" style="margin-top: 4px" iconcls="icon-no" plain="true">关闭</a>*@
        </div>
        <div style="clear: left"></div>
    </div>
    <div style="margin-bottom: 5px">
    </div>
</div>
 
